import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class ListService {

  constructor() { }
  list:Array<string>=['red','blue','green']
  getlist(){
    return this.list
  }
  setlist(str:string){
    this.list.push(str);
  }
}
